import request from '@/utils/request'
import url from './url'

// 指标卡
export function getKpiCard(params) {
  return request({
    url: url.kpiCard,
    method: 'get',
    params
  })
}

// 活跃排行
export function getTopRank(params) {
  return request({
    url: url.topRank,
    method: 'get',
    params
  })
}

// 休眠排行
export function getBottomRank(params) {
  return request({
    url: url.bottomRank,
    method: 'get',
    params
  })
}

// 活跃走势
export function getActiveTrend(params) {
  return request({
    url: url.activeTrend,
    method: 'get',
    params
  })
}

// 根据ID查询活跃租户
export function getMonitorTenantById(params) {
  return request({
    url: url.monitorTenantById,
    method: 'get',
    params
  })
}
// 分页查询活跃租户
export function getMonitorTenantPage(params) {
  return request({
    url: url.monitorTenantPage,
    method: 'get',
    params
  })
}
// 分页查询操作记录
export function getPageOperationRecord(params) {
  return request({
    url: url.pageOperationRecord,
    method: 'get',
    params
  })
}
// 停留时间趋势图
export function getStayTimeTrend(params) {
  return request({
    url: url.stayTimeTrend,
    method: 'get',
    params
  })
}
